package devicestest;

public class TimerTest implements core.interfaces.InterruptInterface{
	devices.Timer timer;

	public TimerTest(){
		this.timer = new devices.Timer(null, this);
		try {java.lang.Thread.sleep(1000);} catch (InterruptedException e) {}
		this.timer.configureTimer((short)0x8001, (short)10);
		try {java.lang.Thread.sleep(6000);} catch (InterruptedException e) {}
		this.timer.configureTimer((short)0x8000, (short)10);
		try {java.lang.Thread.sleep(5000);} catch (InterruptedException e) {}
		this.timer.configureTimer((short)0x8003, (short)5);
		try {java.lang.Thread.sleep(5000);} catch (InterruptedException e) {}
		this.timer.configureTimer((short)0x8007, (short)5);
		try {java.lang.Thread.sleep(5000);} catch (InterruptedException e) {}
	}

	public static void main(java.lang.String args[]){
		new devicestest.TimerTest();
	}

	public void lowerInterruptLine(int line) {
	}

	public void raiseInterruptLine(int line) {
		System.out.printf("Interrupt raised (%d)\n", line);
	}
}
